package com.woniuxy.carlife.carlifeorderweb.controller;


import com.woniuxy.carlife.carlifecommonsweb.responsetemplate.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
*@ClassName:ChargeOrderController
*@Description:充电桩订单相关的处理接口，包括生成订单、完成支付等接口
*@author qk
*@date 2021/4/7 14:56
**/
@RestController
@RequestMapping("//charge-order")
public class ChargeOrderController {
    /*
     * 功能描述〈生成充电订单〉
     * @author:qk
     * @param: 充电站cid，充电桩zid，买家bid
     * @return:包含ChargeOrder的result
     * @Date 2021/4/7 15:01
     * @throws //
     */
    @PutMapping("/platformmanage/addChargeOrder")
    public Result addChargeOrder(int cid,int zid,int bid){
        return new Result();
    }
    /*
     * 功能描述〈完成充电订单的支付功能〉
     * @author:qk
     * @param: 充电订单coid
     * @return: 支付结果
     * @Date 2021/4/7 15:22
     * @throws //
     */

    @PutMapping("/platformmanage/payForChargeOrder")
    public Result payForChargeOrder(int coid){
        return new Result();
    }
}

